﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace VoiceTestPlatform
{
    public class NetworkStatusManager
    {
        static NetworkStatusManager()
        {
            records = new ObservableCollection<NetworkStatusRecord>();
        }

        public static bool? NetworkStatus;

        private static ObservableCollection<NetworkStatusRecord> records;

        public static ObservableCollection<NetworkStatusRecord> Records
        {
            get
            {
                return records;
            }
        }
    }

    public class NetworkStatusRecord
    {
        private DateTime time;

        public DateTime Time
        {
            get { return time; }
            set { time = value; }
        }

        private string status;

        public string Status
        {
            get { return status; }
            set { status = value; }
        }

        public string TimeString
        {
            get { return Time.ToString("yyy-MM-dd HH:mm:ss"); }
        }
    }
}
